package com.qf.service.impl;

import com.qf.entity.OrderItem;
import com.qf.entity.OrderItemDTO;
import com.qf.mapper.OrderItemMapper;
import com.qf.service.OrderItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * 天--道--酬--勤
 *
 * @author LiangGaoQiang
 * @ClassName OrderItemServiceImpl
 * @Date: 2025/5/6 20:03
 * @Description: 描述
 */
@Service
public class OrderItemServiceImpl implements OrderItemService {
    @Autowired
    private OrderItemMapper orderItemMapper;


    @Override
    public List<OrderItem> fuzzyQueryOrderItem(OrderItemDTO orderItemDTO) {
        return orderItemMapper.fuzzyQueryOrderItem(orderItemDTO);
    }

    @Override
    public Boolean deleteOrderItem(Long id) {
        return orderItemMapper.deleteOrderItem(id);
    }

    @Override
    public Boolean deleteBatch(List<Long> ids) {
        return orderItemMapper.deleteBatch(ids);
    }

    @Override
    public Boolean addOrderItem(OrderItem orderItem) {
        return orderItemMapper.addOrderItem(orderItem);
    }

    @Override
    public Boolean updateOrderItem(OrderItem orderItem) {
        return orderItemMapper.updateOrderItem(orderItem);
    }

    @Override
    public void insertBatch(List<OrderItem> cachedDataList) {
        orderItemMapper.insertBatch(cachedDataList);
    }
}
